<template>
  <!-- 合同预览 -->
  <PDFView :pdfUrl="jsPdf" />
</template>

<script lang="ts" setup>
import PDFView from "@/components/PdfViewer/index.vue";

// 接收父组件
const props = defineProps<{
  id: string;
}>();

const jsPdf = import.meta.env.VITE_APP_BASE_API + "/business/contract/preview?id=" + props.id; // 线上地址也可，但需要注意跨域问题
</script>

<style lang="scss" scoped></style>
